﻿GStreetviewClient = function()
{     
    /// <summary>Creates a new GStreetviewClient. (Since 2.104)</summary>
}

GStreetviewClient.prototype =
{   
    // ====================================================================================
    // Methods
    // ====================================================================================
    getNearestPanoramaLatLng : function(latlng, callback)
    {
        /// <summary>Finds the GLatLng of the nearest panorama to a given point and passes it to the provided callback. If there are no nearby panoramas, or if a server error occurs, the provided callback is passed null instead. (Since 2.104)</summary>
        /// <param name="latlng" type="GLatLng">Position to search for panorama.</param>
        /// <param name="callback" type="GLatLng">GLatLng of the nearest panorama. If there are no nearby panoramas, or if a server error occurs, the provided callback is passed null instead.</param>
    },
    
    getNearestPanorama : function(latlng, callback)
    {
        /// <summary>Retrieves the data for the nearest panorama to a given latlng and passes it to the provided callback as a GStreetviewData object. (Since 2.104)</summary>
        /// <param name="latlng" type="GLatLng">Position to search for panorama.</param>
        /// <param name="callback" type="GStreetviewData">GLatLng of the nearest panorama. If there are no nearby panoramas, or if a server error occurs, the provided callback is passed null instead.</param>
    },
    
    getPanoramaById : function(panoId, callback)
    {
        /// <summary>Retrieves the data for the given panorama id and passes it to the provided callback as a GStreetviewData object. Ids are unique per panorama and stable for the lifetime of a session, but are liable to change between sessions. (Since 2.104)</summary>
        /// <param name="panoId" type="Number">Panorama ID.</param>
        /// <param name="callback" type="GStreetviewData">Data for the given panorama id.</param>
    }
    
}

